package src;

public class java5 {
	public static void main(String[] args) {
		int A[]= {9,2,5,7,8};
		int B = 0;
		int C = 0;
		int D = 0;
		int E = 0;		
		B=A[0];
		C=A[4];
		D=A[1];
		E=A[3];
		A[4]=B;
		A[0]=C;
		A[3]=D;
		A[1]=E;
		
		System.out.println(A[0]);
		System.out.println(A[1]);
		System.out.println(A[2]);
		System.out.println(A[3]);
		System.out.println(A[4]);
		
	}
}
